package com.tourlaid.mamagerment.action.wx

import com.tourlaid.mamagerment.ao.wx.MyselfAo
import com.tourlaid.mamagerment.entity.ResponseData
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * Created by xiaoyongge on 2017/8/30.
 * i'm
 */
@RestController
@RequestMapping("/tld/admin/myself")
class MyselfAction {

    @Autowired
    val myselfAo: MyselfAo? = null

    @RequestMapping("/getMyself.json")
    fun getMyself(userId: Long): ResponseData<MutableMap<String, Any?>> {
        val map = myselfAo!!.getMyself(userId);
        return ResponseData(map)
    }
}